#include "udp_server.hpp"
#include "Log.hpp"
void Usage(const std::string &s)
{
    std::cout << "warning: illegal usage!" << std::endl;
    std::cout << "please input as this: " << s.c_str() << " local_ip local_port" << std::endl;
}
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        return 1;
    }
    std::string ip = argv[1];
    uint16_t port = std::stoi(argv[2]);
    UdpServer us(ip, port);

    us.Init();
    us.Start();
}